import VueRouter from 'vue-router'
// 导入components
import homeContainer from './components/tapbar/homeContainer.vue'
import memberContainer from './components/tapbar/memberContainer.vue'
import carContainer from './components/tapbar/carContainer.vue'
import searchContainer from './components/tapbar/searchContainer.vue'
import newsList  from './components/news/newsList.vue'
import newsInfo from './components/news/newsInfo.vue'

var router = new VueRouter({
    routes: [{
            path: '/',
            redirect: '/home'
        },
        {
            path: '/home',
            component: homeContainer
        },
        {
            path: '/member',
            component: memberContainer
        },
        {
            path: '/car',
            component: carContainer
        },
        {
            path: '/search',
            component: searchContainer
        },
        {
            path:'/news/newsList',
            component: newsList
        },
        {
            path:'/news/newsInfo',
            component: newsInfo
        }
    ],
    linkActiveClass: 'mui-active'
})

// export default
export default router